# from rest_framework.response import Response
# from rest_framework.serializers import ModelSerializer
#
# from apps.spit.models import Spit
#
#
# class SpitSerializer(ModelSerializer):
#     class Meta:
#         model = Spit
#         fields = '__all__'
#         # extra_kwargs = {'share':{'required':False,'default':0}}
#
#
#
#     def create(self, validated_data):
#         # parent = validated_data['parent']
#         # if parent:
#         #
#         #     new_spit = super().create(validated_data)
#         #     return Response(new_spit)
#         new_spit = super().create(validated_data)
#         return Response(new_spit)
#
